package com.sxt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService{


//    @Autowired
//    private UserMapper userMapper;


    @Override
    public User queryUserByLoginName(String loginName) {
        UserMapper userMapper = this.getBaseMapper();
        QueryWrapper<User> qw=new QueryWrapper<>();
        qw.eq("loginname",loginName);

        User user = userMapper.selectOne(qw);
        return user;
    }
}
